package com.lpit.controller;

import com.lpit.pojo.CommentReply;
import com.lpit.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
@FeignClient(name = "behavior-server",path = "/comment/management")
public interface CommentManagementControllerApi {


    /**
     * 查看评论
     * @return
     */
    @GetMapping
    ResponseResult queryCommentAll();

    /**
     * 删除评论
     * @return
     */
    @DeleteMapping("/{id}")
    ResponseResult delete(@PathVariable Integer id);

    /**
     * 评论置顶
     * @param id
     * @return
     */
    @PutMapping("/{id}")
    ResponseResult commentTop(@PathVariable Integer id);

    /**
     * 回复评论
     * @return
     */
    @PostMapping
    ResponseResult addComment(@RequestBody CommentReply commentReply);


}
